from celery.result import AsyncResult

from ce_task.celery_task import cel

ret = AsyncResult(id="bdf5bc62-94e0-42f1-929b-e6f5e7617fd4", app=cel)
if ret.successful():
    print("chengg")
elif ret.failed():
    print("shib")
else:
    print("weizhi")